import service from '../utils/request'

export function fetchStudentByCondition (data) {
    return service({
        url: '/student/select',
        method: 'post',
        data
    })
}

export function deleteStudent (params) {
    return service({
        url: `/student/${params}`,
        method: 'delete'
    })
}

export function editStudent (data) {
    return service({
        url: '/student',
        method: 'put',
        data
    })
}

export function addStudent (data) {
    return service({
        url: '/student',
        method: 'post',
        data
    })
}